﻿Ext.define('app.prm.task.edit.Related', {
    extend: 'Ext.tab.Panel',
    taskId: 0,
    style: 'margin:5px 0px 0px 0px',
    border: true,
    activeTab: 0,
    height: 500,
    initComponent: function () {
        var me = this;
        this.items = [
            {
                title: '进度',
                autoHeight: true,
                layout: 'fit',
                items: [Ext.create('app.prm.task.edit.Process', { taskId: me.taskId })]
            },
            {
                title: '文档',
                autoHeight: true,
                layout: 'fit',
                items: [Ext.create('app.prm.task.edit.Attachment', { taskId: me.taskId })]
            }
        ];
        me.callParent();
    }
});